package com.ys.service.business;

import java.util.List;

import com.ys.vo.R;

import lombok.AllArgsConstructor;
import lombok.Data;

public interface TpAmazonShopService {

    /**
     * 获取亚马逊店铺信息
     */
    R listAll();
    @Data
    @AllArgsConstructor
    public class ListAllDto {
    	private List<RowDto> rows;
    	
        @Data
        @AllArgsConstructor
        public static class RowDto {
        	private String guid;
        	private String shopUser;
        	private String shopName;
        	private String sellerId;
        }
    }
	
	 R add(Long amazonSellerId, String detailArr);

	 R edit(Long amazonSellerId, String detailArr);
	 
	 R getAmazonAuthUrl(Long shopId);
	 
	 R getAmazonAuthUrlGg(Long shopId);

	/**
	 * 获取亚马逊TOKEN值
	 * @param spapi_oauth_code 来自通知内容的spapi_oauth_code参数值
	 * @param shopId
	 * @return
	 */
	 R getAmazonToken(String spapi_oauth_code, Long shopId);

	/**
	 * 获取亚马逊广告TOKEN值
	 * @param spapi_oauth_code 来自通知内容的spapi_oauth_code参数值
	 * @param shopId
	 * @return
	 */
	 R getAmazonTokenGg(String code, Long shopId);

    void updateFirstSaleDay(Long id);
}